Adding directives and constants to the source and header files

To return to the previous part of this procedure, go to Step 2: Adding member variables and member functions (Microsoft Visual C++).

Add the following directives and constants to the Source and Header files.

  1. Add a constant to Embeddable_DesignerDlg.cpp.

// Filter for the Open dialog box and the Save As dialog box

static const char BASED_CODE szFilter[] = "Crystal Reports|*.rpt||";// Filter for the Open dialog box and the Save As dialog box

static const char BASED_CODE szFilter[] = "Crystal Reports|*.rpt||";


  1. Add the directive to Embeddable_Designer.h

//Import the Crystal Reports 8.5 ActiveX Designer Design and Runtime Library

#import "craxddrt.tlb" no_namespace//Import the Crystal Reports 8.5 ActiveX Designer Design and Runtime Library

#import "craxddrt.tlb" no_namespace


Note:    Copy Craxddrt.tlb to your application directory. Craxddrt.tlb can be found in the \Crystal Reports\Developer Files\include path, off the directory you installed Crystal Reports to.

To continue with this procedure, go to Adding the code for the CEmbeddable_Designer class.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com